<?php
/**
 * Project: AIGC
 * Author: moufer <moufer@163.com>
 * Date: 2024/7/6 23:18
 */

namespace module\ai\library\channel\interface;

use Generator;
use module\ai\library\channel\abstract\Completion;

interface LlmInterface
{
    /**
     * 获取模型分支
     * @return array
     */
    public static function versions(): array;

    /**
     * AI非流式回答
     * @return Completion
     */
    public function completion(): Completion;

    /**
     * 流式回答
     * @return Generator
     */
    public function completionStream(): Generator;
}